package com.jl.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

/**
 * <p>
 * 用信息户表
 * </p>
 *
 * @author JiangJian
 * @since 2019-03-06
 */

@TableName("user")
public class User {

    private static final long serialVersionUID = 1L;

    //主键
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户姓名 真实姓名
     */
    private String username;

    /**
     * 登录账号 用户名
     */
    private String loginName;

    /**
     * 登录密码
     */
    private String password;

    /**
     * 组织结构id(岗位)
     */
    private Long organizationId;

    /**
     * 到岗时间
     */
    private Date arrivalTime;

    /**
     * 维修职称id(岗位)
     */
    private Long titleId;

    /**
     * 取得(职称)证书时间
     */
    private Date certificateTime;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 工号
     */
    private String jobNum;

    /**
     * 状态码：暂未定义
     */
    private Integer status;

    /**
     * 创建日期
     */
    private Date gmtCreate;

    /**
     * 创建者id，如果值为0则表示系统导入
     */
    private Long createId;

    /**
     * 修改时间
     */
    private Date gmtModified;

    /**
     * 修改者id
     */
    private Long modifyId;

    /**
     * 用户角色id
     */
    @TableField(exist = false)
    private Long roleId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(Long organizationId) {
        this.organizationId = organizationId;
    }

    public Date getArrivalTime() {
        return arrivalTime;
    }

    public void setArrivalTime(Date arrivalTime) {
        this.arrivalTime = arrivalTime;
    }

    public Long getTitleId() {
        return titleId;
    }

    public void setTitleId(Long titleId) {
        this.titleId = titleId;
    }

    public Date getCertificateTime() {
        return certificateTime;
    }

    public void setCertificateTime(Date certificateTime) {
        this.certificateTime = certificateTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getJobNum() {
        return jobNum;
    }

    public void setJobNum(String jobNum) {
        this.jobNum = jobNum;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Long getModifyId() {
        return modifyId;
    }

    public void setModifyId(Long modifyId) {
        this.modifyId = modifyId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
}
